package com.gitee.feizns.webtemplate.commons.exception.service;

/**
 * 业务异常类，用于描述业务错误消息
 * 如果有需要请继承该类
 * @author feizns
 * @since 2019/5/13
 */
public class ServiceException extends RuntimeException {

    /**
     * 业务异常状态
     */
    private Enum<?> status;

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(String message, Enum status) {
        this(message);
        this.status = status;
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public Enum<?> getStatus() {
        return status;
    }

}
